<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>vue监听事件</title>
</head>
<body>

<div id="app1">
    <label v-text="'这个按钮被点击了'+counter+'次'"></label>
    <br>
    <input type="button" @click="counter+=1" value="点击+1">
</div>

<script src="../modules/vue.min.js"></script>
<script>

    let appdata = {
        counter: 0
    };
    let vm1 = new Vue({
        el: '#app1',
        data: appdata
    });
</script>
</body>
</html>